<%--
  Created by IntelliJ IDEA.
  User: lady
  Date: 2018/5/3
  Time: 17:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int x=0;
    pageContext.setAttribute("a",10);

    request.setAttribute("b",20);

    session.setAttribute("c",30);

    application.setAttribute("d",40);
%>
<p>${pageScope.a}</p>

<p>${requestScope.b}</p>

<p>${sessionScope.c}</p>

<p>${applicationScope.d}</p>



<hr/>
<p>${a}</p>
<p>${b}</p>
<p>${c}</p>
<p>${d}</p>

</body>
</html>
